/**
 * @description: const
 * @date: 2021/7/25
 */

/* eslint-disable @typescript-eslint/naming-convention */

import { createDisplayFromOptions } from '@common/utils/common';

export const enum STATUS_CODE {
  success = 0,
}

export enum HTTP_STATUS_CODE {
  success = 200,
  noLogin = 401,
  logout = 403,
  noFound = 404,
  serverError = 500,
}

export enum SEX_TYPE {
  male = 1,
  female,
}

export const sexOptions: OptionsItem<keyof SEX_TYPE>[] = [
  { label: '男', value: SEX_TYPE.male },
  { label: '女', value: SEX_TYPE.female },
];

export const sexDisplay = createDisplayFromOptions<keyof SEX_TYPE>(sexOptions);

export const workExperience = ['1', '3', '5', '10', '10+'];
